package main

import "fmt"

func main() {
	// var a []string
	// var b = []int{}
	// var c = []bool{false, true}

	// fmt.Println(a, b, c)
	// fmt.Println(b == nil)
	// fmt.Println(a == nil)
	// fmt.Println(len(b), len(a))

	// a := [5]int{1, 2, 3, 4, 5}
	// s := a[1:3]
	// fmt.Printf("s:%v  len(s):%v  cap(s):%v\n", s, len(s), cap(s))

	// s1 := a[2:]
	// fmt.Printf("s:%v  len(s):%v  cap(s):%v\n", s1, len(s1), cap(s1))

	// s2 := a[:3]
	// fmt.Printf("s:%v  len(s):%v  cap(s):%v\n", s2, len(s2), cap(s2))

	// s3 := a[:]
	// fmt.Printf("s:%v  len(s):%v  cap(s):%v\n", s3, len(s3), cap(s3))

	// s := []int{1, 3, 5}

	// for i := 0; i < len(s); i++ {
	// 	fmt.Println(i, s[i])
	// }

	// for index, value := range s {
	// 	fmt.Println(index, value)
	// }

	var a = make([]string, 5, 10)
	for i := 0; i < 10; i++ {
		a = append(a, fmt.Sprintf("%v", i))
		fmt.Println(a)
	}
}
